<%@ page contentType="text/html;utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="ot" uri="http://www.ideyatech.com/tides"%>
<%@ taglib prefix="idy" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="sec"	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<idy:bs-iris-header title_webpage="title.reports">

</idy:bs-iris-header>

<div style="margin-top: 200px;">
    <div><spring:message code="label.report-list" /></div>
    	<div> 
        	<div>
        		<a href='generate-report.jspx?reportFile=test&reportFormat=pdf&reportName=test_title'>test.jrxml</a>
<%-- 				<c:if test="${empty reportList}"> --%>
<%-- 					<c:out value="No available reports"/> --%>
<%-- 				</c:if> --%>
<!-- 				<div id="report-accordion"> -->
<%-- 				    <c:forEach items="${systemCodesList}" var="reportGroup" varStatus="reportGroupStatus"> --%>
<%-- 				    	<h3><a href="#">${reportGroup.value}</a></h3> --%>
<!-- 				    	<div class="report-accordion-container report-details-wrapper"> -->
<%-- 					    	<c:set var="reportCounter" value="0"/>  --%>
<%-- 							<c:forEach items="${reportList}" var="report" varStatus="reportStatus"> --%>
<%-- 								<c:if test="${reportGroup.numberValue == report.reportGroup.numberValue }"> --%>
<%-- 									<sec:authorize ifAnyGranted="${report.accessCode}"> --%>
<%-- 										<c:set var="reportCounter" value="${reportCounter + 1}"/> --%>
<!-- 										<div class="report-details"> -->
<!-- 											<div class="report-image">							 -->
<%-- 												<c:forEach items = "${report.files}" var="fileInfo"> --%>
<%-- 													<img src="view-image.jspx?FileInfoId=${fileInfo.id}" width="150" height="100" style="border:1px;"/> --%>
<%-- 												</c:forEach> --%>
<%-- 												<c:choose> --%>
<%-- 												    <c:when test="${fn:contains(report.title,'Summary')}"> --%>
<%-- 												    	<a href='generate-report.jspx?reportFile=${report.name}&reportFormat=pdf&image_stream=attache.gif&days_id=7&userName=${userName}&position=${position}&branch=${caStation}&userId=${userId}&SUBREPORT_DIR=${jasperPath}&reportName=${report.title}&titleA=${titleA}&titleB=${titleB}&titleC=${titleC}'> --%>
<%-- 												    		<img src="${url_context}/themes/attache/images/icon-summary-64.png" alt="Attache" title="${report.title}"> --%>
<!-- 												    	</a> -->
<%-- 												    </c:when> --%>
<%-- 												    <c:otherwise> --%>
<%-- 												    	<a href='generate-report.jspx?reportFile=${report.name}&reportFormat=pdf&image_stream=attache.gif&days_id=7&userName=${userName}&position=${position}&branch=${caStation}&userId=${userId}&SUBREPORT_DIR=${jasperPath}&reportName=${report.title}&titleA=${titleA}&titleB=${titleB}&titleC=${titleC}'> --%>
<%-- 												     	   <img src="${url_context}/themes/attache/images/icon-list-64.png" alt="Attache" title="${report.title}"> --%>
<!-- 												     	</a> -->
<%-- 												    </c:otherwise> --%>
<%-- 												</c:choose> --%>
<!-- 											</div> -->
<!-- 											<div class="table"> -->
<%-- 												<a class='report-title' href='generate-report.jspx?reportFile=${report.name}&reportFormat=pdf&image_stream=attache.gif&days_id=7&userName=${userName}&position=${position}&branch=${caStation}&userId=${userId}&SUBREPORT_DIR=${jasperPath}&reportName=${report.title}&titleA=${titleA}&titleB=${titleB}&titleC=${titleC}'> --%>
<%-- 													<c:out value="${report.title}" /> --%>
<!-- 												</a> -->
<%-- 												<c:forEach var="desc" items="${fn:split(report.description, '?')}" varStatus="cnt"> --%>
<!-- 													<div class="report-description"> -->
<!-- 														<div class="example-header L"> -->
<%-- 															<c:if test="${cnt.count == 1}">Example:</c:if>&nbsp; --%>
<!-- 														</div> -->
<!-- 														<div class="example-body table"> -->
<%-- 															${desc}<c:if test="${fn:trim(desc) != ''}">?</c:if> --%>
<!-- 														</div> -->
<!-- 													</div> -->
<%-- 												</c:forEach> --%>
<!-- 											</div>	 -->
<!-- 								    	</div> -->
<%-- 									</sec:authorize> --%>
<%-- 								</c:if> --%>
<%-- 						</c:forEach> --%>
<%-- 						<c:if test="${reportCounter == 0 }"> --%>
<!-- 							<div>There is no available report for this group.</div> -->
<%-- 						</c:if> --%>
<!-- 					</div> -->
<%-- 				</c:forEach> --%>
<!-- 			</div> -->
		</div>
    </div>
</div>

<idy:bs-iris-footer>
	<script type="text/javascript">
		$(document).ready(function() {
			$( "#report-accordion" ).accordion({ 
				autoHeight: false,
				collapsible: false,
				active: false
			});
		});
	</script>
</idy:bs-iris-footer>